import { createStore } from 'vuex'

export default createStore({
	state: {
		notebookId: 0,
		articleId: 0,
		isCreating: false,
	},
	mutations: {
		viewNotebook(state, id) {
			state.notebookId = id
		},
		viewArticle(state, id) {
			state.articleId = id
		},
		createArticle(state) {
			state.isCreating = true
		},
		modifyArticle(state) {
			state.isCreating = false
		},
	},
	actions: {},
	modules: {},
})
